package com.jf.cloud.service.sysmanager.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * 员工(菜单)游戏权限
 * </p>
 *
 * @author LangK
 * @since 2017-12-04
 */
@Entity
@Table(name = "sys_staff_power")
public class SysStaffPower extends BaseEntity {

    private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@Column(name = "ROW_ID", nullable = false)
	protected Long rowId;

	public Long getRowId() {
		return rowId;
	}

	public void setRowId(Long rowId) {
		this.rowId = rowId;
	}

    /**
     * 员工ID
     */
	@Column(name = "STAFF_ID")
	private Long staffId;
    /**
     * 员工账号
     */
	@Column(name = "STAFF_ACCOUNT")
	private String staffAccount;
    /**
     * 游戏ID
     */
	@Column(name = "GAME_ID")
	private Long gameId;
    /**
     * 游戏名字
     */
	@Column(name = "GAME_NAME")
	private String gameName;
    /**
     * 权限类型
            
            讨论结果(写死、后面需要的时候后再增加)：
            10  订单管理---订单信息查询、收货订单查询，综合查询---游戏统计、筛选用户
            20  订单管理---代练订单查询
            30  手游订单
     */
	@Column(name = "POWER_TYPE")
	private String powerType;


	public Long getStaffId() {
		return staffId;
	}

	public void setStaffId(Long staffId) {
		this.staffId = staffId;
	}

	public String getStaffAccount() {
		return staffAccount;
	}

	public void setStaffAccount(String staffAccount) {
		this.staffAccount = staffAccount;
	}

	public Long getGameId() {
		return gameId;
	}

	public void setGameId(Long gameId) {
		this.gameId = gameId;
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public String getPowerType() {
		return powerType;
	}

	public void setPowerType(String powerType) {
		this.powerType = powerType;
	}


	@Override
	public String toString() {
		return "SysStaffPower{" +
			", staffId=" + staffId +
			", staffAccount=" + staffAccount +
			", gameId=" + gameId +
			", gameName=" + gameName +
			", powerType=" + powerType +
			"}";
	}
}
